﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.RightsManagement;
using System.Text;
using System.Threading.Tasks;

namespace WpfApp1.Models
{
    public class User
    {
        public long Id { get; set; }
        public string UserName { get; set; }
        public string Email { get; set; }
        public string Password { get; set; }
        public User()
        {

        }
        public User(long id, string userName, string email, string password)
        {
            Id = id;
            UserName = userName;
            Email = email;
            Password = password;
        }
        public override bool Equals(object? u)
        {
            User u1 = (User)u;
            if(u1.Email.Equals(this.Email) && u1.Password.Equals(this.Password)){
                return true;
            }
            return false;
        }
    }
}
